package com.techstar.api.pojo.onlinecar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当日载客状态趋势
 * @date 2021年8月9日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "onlinecar_today_load_status_trend")
@org.hibernate.annotations.Table(appliesTo = "onlinecar_today_load_status_trend",comment="pbtp-5-当日载客状态趋势")
public class OnlinecarTodayLoadStatusTrend {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '在线车辆数'")
	private String onlineNum;
	@Column(columnDefinition="varchar(100) COMMENT '载客车辆数'")
	private String loadNum;
	@Column(columnDefinition="varchar(100) COMMENT '重载率'")
	private String loadRatio;
	@Column(columnDefinition="varchar(100) COMMENT '空驶车辆数'")
	private String vacantNum;
	@Column(columnDefinition="varchar(100) COMMENT '空驶率'")
	private String vacantRatio;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}

